package com.yyt.libsrc.net;

import java.util.List;

public class JBean {

    /**
     * cid : 8103a4c628a0b98974ec1949-711261d4-5f17-4d2f-a855-5e5a8909b26e
     * platform : all
     * audience : {"tag":["深圳","北京"]}
     * notification : {"android":{"alert":"Hi, JPush!","title":"Send to Android","builder_id":1,"extras":{"newsid":321}},"ios":{"alert":"Hi, JPush!","sound":"default","badge":"+1","extras":{"newsid":321}}}
     * message : {"msg_content":"Hi,JPush","content_type":"text","title":"msg","extras":{"key":"value"}}
     * sms_message : {"temp_id":1250,"temp_para":{"code":"123456"},"delay_time":3600}
     * options : {"time_to_live":60,"apns_production":false,"apns_collapse_id":"jiguang_test_201706011100"}
     */

    public String cid;
    public String platform;
    public AudienceBean audience;
    public NotificationBean notification;
    public MessageBean message;
    public SmsMessageBean sms_message;
    public OptionsBean options;

    public static class AudienceBean {
        public List<String> tag;
    }

    public static class NotificationBean {
        /**
         * android : {"alert":"Hi, JPush!","title":"Send to Android","builder_id":1,"extras":{"newsid":321}}
         * ios : {"alert":"Hi, JPush!","sound":"default","badge":"+1","extras":{"newsid":321}}
         */

        public AndroidBean android;
        public IosBean ios;

        public static class AndroidBean {
            /**
             * alert : Hi, JPush!
             * title : Send to Android
             * builder_id : 1
             * extras : {"newsid":321}
             */

            public String alert;
            public String title;
            public int builder_id;
            public ExtrasBean extras;

            public static class ExtrasBean {
                /**
                 * newsid : 321
                 */

                public int newsid;
            }
        }

        public static class IosBean {
            /**
             * alert : Hi, JPush!
             * sound : default
             * badge : +1
             * extras : {"newsid":321}
             */

            public String alert;
            public String sound;
            public String badge;
            public ExtrasBeanX extras;

            public static class ExtrasBeanX {
                /**
                 * newsid : 321
                 */

                public int newsid;
            }
        }
    }

    public static class MessageBean {
        /**
         * msg_content : Hi,JPush
         * content_type : text
         * title : msg
         * extras : {"key":"value"}
         */

        public String msg_content;
        public String content_type;
        public String title;
        public ExtrasBeanXX extras;

        public static class ExtrasBeanXX {
            /**
             * key : value
             */

            public String key;
        }
    }

    public static class SmsMessageBean {
        /**
         * temp_id : 1250
         * temp_para : {"code":"123456"}
         * delay_time : 3600
         */

        public int temp_id;
        public TempParaBean temp_para;
        public int delay_time;

        public static class TempParaBean {
            /**
             * code : 123456
             */

            public String code;
        }
    }

    public static class OptionsBean {
        /**
         * time_to_live : 60
         * apns_production : false
         * apns_collapse_id : jiguang_test_201706011100
         */
        public int time_to_live;
        public boolean apns_production;
        public String apns_collapse_id;
    }
}
